<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<input type="hidden" id="page_no" value="${paramMap.pageNo}"/>
<input type="hidden" id="page_size" value="${paramMap.pageSize}"/>
<input type="hidden" id="page_count" value="${paramMap.pageCount}"/>
<input type="hidden" id="data_count" value="${paramMap.dataCount}"/>
<c:choose>
<c:when test="${!empty discussList && fn:length(discussList) ne 0}">
	<p:pagination pageNo="${paramMap.pageNo}" pageCount="${paramMap.pageCount}" queryFunction="queryDiscussList" style="text-right"></p:pagination>
	<div class="c-article-comments__body js-comments-body">
		<ul class="c-article-comments__list js-comments-list">
			<c:forEach var="discussInfo" items="${discussList}" varStatus="index">
			<li class="c-article-comments-item" id="comment-1024256">
				<img alt="" src="<%=path %>/images/avatar.jpg" class="c-article-comments-item__avatar">
				<div class="c-article-comments-item__info  js-single-comment">
					<span class="c-article-comments-item__name">${discussInfo.userName}</span>
					<span class="c-article-comments-item__meta"><fmt:formatDate value="${discussInfo.discussTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
					<div class="c-article-comments-item__content">
						<p>${discussInfo.discussInfo}</p>
					</div>
				</div>
			</li>
			</c:forEach>
		</ul>
	</div>
	
</c:when>
<c:otherwise>
	<div class="c-article-comments__body js-comments-body">
		<ul class="c-article-comments__list js-comments-list">
			<li class="c-article-comments-item" id="comment-1024256">
			暂无评论
			</li>
		</ul>
	</div>
</c:otherwise>
</c:choose>